<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>北风编程</title>
    <link rel="stylesheet" href="{{ url_for('static',filename='layui/css/layui.css',t='1483944306685') }}" media="all">
    <style>
        .lesson_block{
            height: 100px;
            border-radius: 5px;
            border:1px solid black;
            text-align: center;
            margin-top: 20px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <div class="layui-main">
        <ul class="layui-nav" lay-filter="">
            <li class="layui-nav-item layui-this"><a href="">首页</a></li>
        </ul>
    </div>
    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-card">
                <div class="layui-card-header">小北</div>
                <div class="layui-card-body" style="overflow: hidden">
                    <div class="layui-col-md9">
                        <h3>最近解锁关卡</h3>
                        <p>
                            <span class="layui-breadcrumb" lay-separator=">>">
                              <a href="">课程</a>
                              <a href="">章节</a>
                              <a><cite>知识点</cite></a>
                            </span>
                        </p>
                    </div>
                    <div class="layui-col-md3">
                        <a class="layui-btn layui-btn-lg layui-btn-radius layui-btn-normal" href="{{ url_for('story',lesson_id=1) }}">继续闯关</a>
                    </div>
                </div>
            </div>
        </div>
        <h1>我的课程</h1>
        <div class="layui-row">
            {% for item in lesson_list %}
            <div class="layui-col-md4 lesson_block">
                <a href="{{ url_for('story',lesson_id=item.Id) }}">
                    <h2>{{ item.name }}</h2>
                    <p>{{ item.remark }}</p>
                </a>
            </div>
            {% endfor %}
        </div>
    </div>
</body>
</html>
<script src="{{ url_for('static',filename='js/jquery-1.12.0.min.js') }}"type="text/javascript"></script>
<script src="{{ url_for('static',filename='layui/layui.js',t='1483944306685') }}"charset="utf-8"type="text/javascript"></script>
<script>
    layui.config({
    version: '1568076536509' //为了更新 js 缓存，可忽略
});
layui.use(['tree', 'laypage', 'layer', 'table', 'carousel', 'upload', 'element', 'slider', 'util', 'form'], function () {
    var tree = layui.tree //树
        , laypage = layui.laypage //分页
        , table = layui.table //表格
        , element = layui.element //元素操作
        , slider = layui.slider//滑块
        , util = layui.util
        , form = layui.form;
});
</script>